package com.sun.dto.users;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * MP自动填充Handler
 *
 * @Author sun
 * @CreateTime 2025/9/6 20:13
 */
public record RoleDto(Long id,
                      String name,
                      String code,
                      String description,
                      LocalDateTime createTime,
                      LocalDateTime updateTime,
                      String createrName,
                      String updaterName,
                      Long createrId,
                      Long updaterId,
                      List<MenuDto> menus
) {
    public RoleDto(Long id,
                  String name,
                  String code,
                  String description,
                  LocalDateTime createTime,
                  LocalDateTime updateTime,
                  String createrName,
                  String updaterName,
                  Long createrId,
                  Long updaterId) {
        this(id, name, code, description, createTime, updateTime, createrName, updaterName, createrId, updaterId, new ArrayList<>());
    }

}


